Previous Book Contents Book Index Next

Inside Macintosh: QuickDraw GX Objects /
Chapter 4 - Colors and Color-Related Objects / About Color Set Objects


Color Values in a Color Set

The array of color values in a color set object can have up to 65,535 entries; each entry must be of one of the types defined in the gxSetColor union:

union gxSetColor{
   gxCMYKColor    cmyk;
   gxRGBColor     rgb;
   gxRGBAColor    rgba;
   gxHSVColor     hsv;
   gxHLSColor     hls;
   gxXYZColor     xyz;
   gxYXYColor     yxy;
   gxLUVColor     luv;
   gxLABColor     lab;
   gxYIQColor     yiq;
   gxColorValue   gray;
   gxGrayAColor   graya;
   unsigned short pixel16;
   unsigned long  pixel32;
   gxColorValue   component[4];
};
The gxSetColor union is an abbreviated color structure (see page 4-53). It has no profile or space fields, because individual colors within a color set cannot have different color spaces, and because the color profiles for the color values are defined elsewhere--in the individual colors, bitmaps, or transfer modes that use this color set. Also, the gxSetColor union has no gxIndexedColor field because color sets cannot be recursive (that is, colors in a color set cannot refer to colors in other color sets).


Previous Book Contents Book Index Next

© Apple Computer, Inc.
7 JUL 1996